<extend name="Public/base"/>
<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U("Admin/Admin/edit")}">
    <div class="tab-content">
     <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label "> 账号 </label>
        <div class="col-sm-10"> {$name} </div>
      </div>
       <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label "> 名称 </label>
        <div class="col-sm-10">
          <input type="text"    name="nickname" class="col-xs-10 col-sm-5"  value="{$nickname}"/>
        </div>
      </div>
       <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label "> 密码 </label>
        <div class="col-sm-10">
          <input type="password"    name="pass" class="col-xs-10 col-sm-5" />
          <span class="info">不修改则留空</span> </div>
      </div>
       <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label "> 邮箱 </label>
        <div class="col-sm-10">
          <input type="text"    name="email" class="col-xs-10 col-sm-5" value="{$email}" />
        </div>
      </div>
       <div class="space-4"></div>
      <div class="form-group">
        <label class="col-sm-2 control-label "> 角色 </label>
        <div class="col-sm-10">
          <foreach name="groups" item="vo">
            <label class="checkbox inline mr10">
              <input value="{$vo.id}" type="checkbox" name="group_id[]" {$vo.checked}/>
              {$vo.title} </label>
          </foreach>
        </div>
      </div>
       <div class="space-4"></div>



        <div class="form-group">
        <label class="col-sm-2 control-label "> 状态 </label>
        <div class="col-sm-10">
          <label class="radio inline"> <input type="radio"  name="status"   value="1" 
                
              
            <if condition="$status"> checked="checked" </if>>
            正常 </label>
          <label class="radio inline"> <input type="radio"  name="status"   value="0" 
                
              
            <if condition="!$status"> checked="checked" </if>>
            禁用</label>
        </div>
      </div>
       <div class="space-4"></div>
    </div>
    <div class="form-actions">
    <input type="hidden" name="uid" value="{$uid}"/>
    <button class="btn btn-info ajax-post " target-form="J_ajaxForm" type="submit"> 更新</button><a class="btn btn-return" href="__URL__" >返 回</a>
  </form>
</block>
